/*
 * PANERadioElement.h
 *
 *  Created on: May 2, 2009
 *      Author: wrice
 */

#ifndef PANERADIOELEMENT_H_
#define PANERADIOELEMENT_H_
#include "PANEImp.h"
namespace PANEImp {

class PANERadioElement : public PANEElement, IMPLEMENTS( VisualRadioForPANE ) {
protected:
	friend class PANEDocument;
	PANERadioElement( PANEDocument * ownerDocument );

public:
	static string TagName;

public: // from VisualRadioForPANE
	virtual bool isAnyElementSelected();
	virtual void setDeselected();
	virtual unsigned long getSelectedElement();
	virtual void setSelectedElement( unsigned long indexOfElement );

public: // from RenderableWithOpenCV
	virtual void render( IplImage * img );

private:
	struct Imp;
	unsigned long indexOfSelectedElement_;
	bool isAnySelected_;
};

}

#endif /* PANERADIOELEMENT_H_ */
